import request from '../request/request'
export function getHouse(params) {
  return request({
    url: '/house',
    method: 'get',
    header: {
      'Authorization': 'Bearer ' + params.token
    }
  })
}
export function postRepair(params) {
  return request({
    url: '/repair',
    data: params,
    method: 'post',
    header: {
      'Authorization': 'Bearer ' + params.token
    },
    data: params.data
  })
}
export function getRepairItem(params) {
  return request({
    url: '/repairItem',
    method: 'get',
    header: {
      'Authorization': 'Bearer ' + params.token
    }
  })
}
export function getRepair(params) {
  return request({
    url: '/repair',
    method: 'get',
    header: {
      'Authorization': 'Bearer ' + params.token
    },
    data: params.data
  })
}

export function getRepairInfo(params) {
  return request({
    url: '/repair/' + params.id,
    method: 'get',
    header: {
      'Authorization': 'Bearer ' + params.token
    }
  })
}
export function putCancel(params) {
  return request({
    url: '/cancel/repaire/' + params.id,
    method: 'put',
    header: {
      'Authorization': 'Bearer ' + params.token
    }
  })
}